package com.ylr.basic.framework.service;

import com.ylr.basic.framework.entity.EphemeralDataEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ylr.basic.common.dto.EphemeralDataDto;
import com.ylr.basic.common.vo.ephemeral_data.EphemeralDataQueryVo;
import com.ylr.basic.common.vo.ephemeral_data.EphemeralDataVo;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-07-06 22:41:05
 * className: EphemeralDataService
 * version: 1.0
 * description:
 */
public interface EphemeralDataService extends IService<EphemeralDataEntity> {

    /**
     * 保存临时数据操作
     * @param ephemeralDataVo 参数对象
     */
    void saveEphemeralData(EphemeralDataVo ephemeralDataVo);

    /**
     * 获取临时数据操作
     * @param businessId   业务主键
     * @param businessType 业务类型
     * @return 结果
     */
    EphemeralDataDto getEphemeralData(Long businessId, Integer businessType);

    /**
     * 批量获取临时数据操作
     * @param ephemeralDataQueryVo 参数对象
     * @return 结果
     */
    List<EphemeralDataDto> batchGetEphemeralData(EphemeralDataQueryVo ephemeralDataQueryVo);

    /**
     * 删除临时数据操作
     * @param idList 主键列表
     * @return 结果
     */
    void deleteEphemeralData(List<Long> idList);

    /**
     * 删除临时数据操作
     * @param businessId   业务主键
     * @param businessType 业务类型
     * @return 结果
     */
    void deleteEphemeralData(Long businessId, Integer businessType);

}

